var express = require('express');
var Account = require('../model/account');

exports.login = function (phone, email, password) {
    var account = new Account({
        phone: phone,
        email: email,
        password: password,
        registerDt: new Date()
    });
    account.save(function (err, res) {
        if (err) {
            console.log(err);
        } else {
            console.log(res);
        }
    });
};